

from django.forms import *
from thesocialstockmarket.personalstock.models import *
from thesocialstockmarket.users.models import *
from thesocialstockmarket.recommendation.models import *


class PerStockForm(ModelForm):
    type = CharField(max_length=1)
    class Meta :
        model = PerStock
        exclude = ('stock','user','current_hold')

class TransactionForm(ModelForm):
    type = CharField(max_length=1)
    amount = FloatField(max_length = 100)
    class Meta :
        model = Transactions
        exclude = ('stock','user')
        
        
class PerStockRecForm(ModelForm):
    type = CharField(max_length=1)
    text = TextField(max_length=5000) 
    class Meta :
        model = PerStockRec
        exclude = ('stock','user','per_stock')

class PerStockRecRatingForm(ModelForm):
    class Meta :
        model = PerStockRecRating
        exclude = ('user','per_stock_rec')

